3.12.69 \(\int \frac {A+B x}{(a+c x^2)^2} \, dx\)

Optimal. Leaf size=57 \[ \frac {A \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {c}}+\frac {A c x-a B}{2 a c \left (a+c x^2\right )} \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {639, 205} \begin {gather*} \frac {A \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {c}}-\frac {a B-A c x}{2 a c \left (a+c x^2\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(A + B*x)/(a + c*x^2)^2,x]

[Out]

-(a*B - A*c*x)/(2*a*c*(a + c*x^2)) + (A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(3/2)*Sqrt[c])

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 639

Int[((d_) + (e_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((a*e - c*d*x)*(a + c*x^2)^(p + 1))/(2*a
*c*(p + 1)), x] + Dist[(d*(2*p + 3))/(2*a*(p + 1)), Int[(a + c*x^2)^(p + 1), x], x] /; FreeQ[{a, c, d, e}, x]
&& LtQ[p, -1] && NeQ[p, -3/2]

Rubi steps

\begin {align*} \int \frac {A+B x}{\left (a+c x^2\right )^2} \, dx &=-\frac {a B-A c x}{2 a c \left (a+c x^2\right )}+\frac {A \int \frac {1}{a+c x^2} \, dx}{2 a}\\ &=-\frac {a B-A c x}{2 a c \left (a+c x^2\right )}+\frac {A \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {c}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 57, normalized size = 1.00 \begin {gather*} \frac {A \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {c}}+\frac {A c x-a B}{2 a c \left (a+c x^2\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(A + B*x)/(a + c*x^2)^2,x]

[Out]

(-(a*B) + A*c*x)/(2*a*c*(a + c*x^2)) + (A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(3/2)*Sqrt[c])

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A+B x}{\left (a+c x^2\right )^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(A + B*x)/(a + c*x^2)^2,x]

[Out]

IntegrateAlgebraic[(A + B*x)/(a + c*x^2)^2, x]

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 140, normalized size = 2.46 \begin {gather*} \left [\frac {2 \, A a c x - 2 \, B a^{2} - {\left (A c x^{2} + A a\right )} \sqrt {-a c} \log \left (\frac {c x^{2} - 2 \, \sqrt {-a c} x - a}{c x^{2} + a}\right )}{4 \, {\left (a^{2} c^{2} x^{2} + a^{3} c\right )}}, \frac {A a c x - B a^{2} + {\left (A c x^{2} + A a\right )} \sqrt {a c} \arctan \left (\frac {\sqrt {a c} x}{a}\right )}{2 \, {\left (a^{2} c^{2} x^{2} + a^{3} c\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(c*x^2+a)^2,x, algorithm="fricas")

[Out]

[1/4*(2*A*a*c*x - 2*B*a^2 - (A*c*x^2 + A*a)*sqrt(-a*c)*log((c*x^2 - 2*sqrt(-a*c)*x - a)/(c*x^2 + a)))/(a^2*c^2
*x^2 + a^3*c), 1/2*(A*a*c*x - B*a^2 + (A*c*x^2 + A*a)*sqrt(a*c)*arctan(sqrt(a*c)*x/a))/(a^2*c^2*x^2 + a^3*c)]

________________________________________________________________________________________

giac [A]  time = 0.17, size = 47, normalized size = 0.82 \begin {gather*} \frac {A \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \, \sqrt {a c} a} + \frac {A c x - B a}{2 \, {\left (c x^{2} + a\right )} a c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(c*x^2+a)^2,x, algorithm="giac")

[Out]

1/2*A*arctan(c*x/sqrt(a*c))/(sqrt(a*c)*a) + 1/2*(A*c*x - B*a)/((c*x^2 + a)*a*c)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 49, normalized size = 0.86 \begin {gather*} \frac {A \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \sqrt {a c}\, a}+\frac {2 A c x -2 B a}{4 \left (c \,x^{2}+a \right ) a c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)/(c*x^2+a)^2,x)

[Out]

1/4*(2*A*c*x-2*B*a)/a/c/(c*x^2+a)+1/2*A/a/(a*c)^(1/2)*arctan(1/(a*c)^(1/2)*c*x)

________________________________________________________________________________________

maxima [A]  time = 1.16, size = 48, normalized size = 0.84 \begin {gather*} \frac {A \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \, \sqrt {a c} a} + \frac {A c x - B a}{2 \, {\left (a c^{2} x^{2} + a^{2} c\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(c*x^2+a)^2,x, algorithm="maxima")

[Out]

1/2*A*arctan(c*x/sqrt(a*c))/(sqrt(a*c)*a) + 1/2*(A*c*x - B*a)/(a*c^2*x^2 + a^2*c)

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 44, normalized size = 0.77 \begin {gather*} \frac {A\,\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {a}}\right )}{2\,a^{3/2}\,\sqrt {c}}-\frac {\frac {B}{2\,c}-\frac {A\,x}{2\,a}}{c\,x^2+a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A + B*x)/(a + c*x^2)^2,x)

[Out]

(A*atan((c^(1/2)*x)/a^(1/2)))/(2*a^(3/2)*c^(1/2)) - (B/(2*c) - (A*x)/(2*a))/(a + c*x^2)

________________________________________________________________________________________

sympy [A]  time = 0.30, size = 90, normalized size = 1.58 \begin {gather*} A \left (- \frac {\sqrt {- \frac {1}{a^{3} c}} \log {\left (- a^{2} \sqrt {- \frac {1}{a^{3} c}} + x \right )}}{4} + \frac {\sqrt {- \frac {1}{a^{3} c}} \log {\left (a^{2} \sqrt {- \frac {1}{a^{3} c}} + x \right )}}{4}\right ) + \frac {A c x - B a}{2 a^{2} c + 2 a c^{2} x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(c*x**2+a)**2,x)

[Out]

A*(-sqrt(-1/(a**3*c))*log(-a**2*sqrt(-1/(a**3*c)) + x)/4 + sqrt(-1/(a**3*c))*log(a**2*sqrt(-1/(a**3*c)) + x)/4
) + (A*c*x - B*a)/(2*a**2*c + 2*a*c**2*x**2)

________________________________________________________________________________________